package com.tjetc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("travel_guide")
public class TravelGuide {
    @TableId(value = "guide_id", type = IdType.AUTO)
    private Long guideId;

    private String title;
    private String destination;
    private String duration;

    // JSON数据，使用MyBatis处理
    private String tripData;

    private Long authorId;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Long viewCount;
    private Long likeCount;
    private Long favoriteCount;
    private Long commentCount;
    private Long editCount;
    private Integer status;
    private Integer isFeatured;
    private Integer isEditorChoice;
    private String coverImage;
    private List<String> tags;
    private String travelType;
    private String travelIntensity;
    private String travelMode;
}